
function searchDisburseOrderSubmit() {
	var spara = $("#disburseOrderListFrm").serialize();
	doActionNoCallback("core", $("#disburseOrderListFrm").get(0).action, spara);
}

function popGameModifyDiv(id) {
	doActionNoPar("disburseOrderPopWindow", appServer + "/back/tran/getDisburseOrder.htm?disburseNo=" + id, function() {
		popupDiv("disburseOrderModifyPopDiv");
	}, null);
}

function afterDisburseOrderModifySubmit() {
    hideDiv("disburseOrderModifyPopDiv");
    doActionNoCallback("core","/back/tran/queryDisburseOrder.htm", gameListParam);
}

function disburseOrderModifySubmit() {
	$.ajax({
	    type: "POST",
	    url: appServer + "/back/tran/disburseOrderModify.htm",
	    data : {"disburseNo": $("#disburseNo").val()},
	    dataType: "json",
	    success: function(result) {
	       if (result.success) {
	    	   alert("操作成功");
	    	   hideDiv('disburseOrderModifyPopDiv');
	       } else {
	    	   alert(result.errorMsg)
	       }
	    }
	});
}

function disburseOrderRefuseSubmit() {
	if($("#refuseReason").val() == '') {
		alert("请输入拒绝理由");
		return false;
	}
	
	$.ajax({
	    type: "POST",
	    url: appServer + "/back/tran/disburseOrderModify.htm",
	    data : {"disburseNo": $("#disburseNo").val(), "refuseReason": $("#refuseReason").val()},
	    dataType: "json",
	    success: function(result) {
	       if (result.success) {
	    	   alert("操作成功");
	    	   hideDiv('disburseOrderModifyPopDiv');
	       } else {
	    	   alert(result.errorMsg)
	       }
	    }
	});
}
